Added option for storing sessions in DB