relations.sql fix