fixed tables

database login was kind of broke because db changes...fixed here