Save session in database