Needed to update a query with old table names