fixing paths, running db-build/db-models at end of script