node permalink -- Parse body when setting permalinks

also take care of another error condition when we have an error storing data in the database.