fix phone_avail.availnum to be a proper primary key, fix agent.agent_custnum unique...