updates to script to load the database