added method to save Game object to database