creates and updates companies