Set sessions to db