layout is still busted, but calendar is now hooked up to database.