db, session abstraction; components pt 1