Unfucked login/logout mechanism
Cleaned up database helper script
Add function to return all users from the database (refs #88)