Query builder for use with mysql & mysql2