json data type only available in postgresql >=9.2, use connection.vendor to detect db