Basic sessions working, time to build database code