Fixed the massive performance hog that is logging
Optimized access to the database a bit