Recreated script for node; now using JSON files as source for database build