fixed db restore (take two)