Check for duplicates using (feed, guid) pair as defined in the post model.
Previously (url, guid) was being checked which could lead to an
integrity error.
Catch additional exceptions when inserting posts. Previously only
duplicate values were caught and other exceptions caused the
program to exit.