figuring out session stuff
moved db info out of session variable