work on database and login system