Added toSqlVal, fromSqlVal