Get rid of some debug messages
Fix more mysql crap
trace: Don't use memset() as it trigs warning in gcc-4.8
db: Improve error logging
Move optimization CFLAGS to CFLAGS_opt