handler erros in site and edit sql file