Move some configurations directly into the lib, they're critical (overwrite as needed in the config files). Better format for the logs. Started the connection and queries for the DB.
Fix the config files. More DB stuff.