error checking before adding scripts to database