CORE-1901 DropPrimaryKey - Fails in Postgres

Updated function to support schemas
CORE-1859 DataTypeFactory doesn't take database into account