sql type handler