fixed the bug where 'granting a wish' did not function correctly after I made changes to the database schema