DNN-5943 - sql scripts are now re-entrant