fix null types in db type mapping