Modified two complex database queries for orders and categories to comply with postgres standards and not repeat logic, i.e. selecting only records which have at least one association, when the joins method does that for you. TRAD-22 #time 40m Total work logged for build and running tests #resolve Finished development