Replace print by logger.log() when enabling debug code on SQL requests