Updated database with sessions