Move sessions to db