- updated script to be specific to the database for the directory it is run from