complete the sql file