Database type mapping