Adding tests for raw queries for PostgreSQL and MySQL.