Start implementing basic app model. Added methods for login in and closing database.