Added -fixdb command