created database tables and login system