MySQL SchemaManager TABLE_CONSTRAINTS query optimization

In order to avoid full databases scan, constraints on the
TABLE_CONSTRAINTS table are moved from JOIN to query predicate. If you have several databases, that speeds up massively schema manipulations.