Modified DataBaseHandler

Made changes for Login and Register also to handle DataBase Handler
Changes