Removed manual session management from database, model and controller