Store sessions in database.