Used database to store session.