Companies database called outside of loop, only called once