Make mem-db continuable friendly