Working database class and user class. Working (but butt ugly) login and logout system.