changed resetdb to load sql file.