Mostly just fixed getRecord from the database class and changed the logindatabase