Changing update-db file, due recent changes in the upgrade command (Using doctrine function to query the DB)