Joel: Overhauled database. Database now works for checkins. Login/logout added.
fixed conflicts