Initial performance improvement, create PL-PGSQL procedure. Modify many models to comply with performance e.g. add new columns, create indexes.