Added database and logging.
Added baker for sessions.