save game to db