modified get companies to use store procedure