insert and update company table