Change load order

- Include all files first, then do stuff
- Allow to completely replace the DB class
Code cleanup & new log message queue