Made Changes to DataBase Handler

Removed DataHandler  and handled all db related activities in one class