fixed db restore