Switching the query to be the parent not database