Postgres log change

Sorry for multiple patches in this request.  The most important patch is to change the order of INSERT/UPDATE for postgres to UPDATE/INSERT.  This stops netdot from filling up postgres logs with duplicate errors.

The other patches are to correct warning/errors when non-standard cisco gear is found.

In the future I'll break out each patch request into it's own branch so they don't come in a bunch like this.  I honestly just forgot about this from long ago and ended up rebasing/merging so I could contribute my old patches.