Catch some sqlite errors we were previously missing.