Cleaning up Swift database after startup so users do not see "running" searches that are actually failed.