refactored the database deployer so that db is updated whenever a script is ran and not when all are ran