Database structure using single-table inheritance along with pg and hstore.