work for companydb (4 tables)