Use with_variant method for dialects db types

* Fix type in models

Change-Id: I8075044c98946445f6c7e2ad259ef5a8d46bd73e
Merge "Use with_variant method for dialects db types"