emergency fix for db deadlock