sqlite publish/unpublish error checking