added DbConnection, Session, Registry classes, bootstrap