database: Add struct GeneralRow

This is a structure for storing data about joined tables for job orders,
purchase orders and invoices.
database: Add filter to job orders loader