Removing obsolete custom postgres SQL-select/resultmap to fix
full-history on postgres