I want to know why we need to create class for sql commands.How we achive three tier architecture through it