Merge pull request #1395 from toopay/db-test-suite

Alter the escape like test, since it use raw SQL via query(), the sql st...