added data type mapping for postgresql
rename for clarity