created the login, updated the database, fixed some database bugs.