config.js is added for app configuration, many database boostrap scripts are refactored