added test cases for db and login
added test cases for db and login