Fixed #3214 -- Support batch custom sql loading (db-dependant)