Implemented database based sessions