Working version of sending game values to the database.