Create session to pass into database