Helper for database deployment or migrating