FIX: Prevent duplicate key errors on writing VOMSProxies to DB. Closes #1228