database optimizations,
company table and ID use