only edit queries, ignore null and straight SQL written in config files