Add database engine and session.
Initial work on model and query layers of db.