Fixing dbapi log message and levels