Add rule for MQTarget and fixes for SQL errors