split sql file and create hashCode and equals methods