Save session to db