added login, database, all the works