Using schema on the queries to avoid duplicated records