<p>Is there a way to do a mysql database query in Corel Draw 13(X3)? </p>

If I recall correctly, CorelDraw uses VBA as scripting language, no?
If so, if it is not restricted, you can probably use ODBC to do that. See
MySQL Connector/ODBC
for details.