Refactor some type code into mixin
Remove redundant method
Add pg_table_row type