Honor SQLALCHEMY_RECORD_QUERIES even in debug mode. Fix #181