Cleaner code, functionizing, the major change is fromDataBaseToObjects(), also splitting code in main.js and functions.js