stage 1 of simplification/revamp. Ovrloading  with our dbconfig and session objects