Adds get session functionality from the database. bjmcmorran acbragdon