Adding new routes for login, changing login queries to use new db tables