There may not be any session in the database. Need to handle that scenario.
Removed stub reimplementation of storing session. Also using stored sessions.