fixed restored db