code split on to parts, loading and executing sql from files