Updating the correct metadata.json files and checking to see if the db_qyery function works