all of the queries related to companies updated to new database schema of unique ids and companies