more name changes, updated app.js for environment-based databases