Write only new arbs

Added a check to ensure an arb is unique before writing to database.