Trying to query DB to update instances