Login/Logout structure

Defined databases and implemented login/logout