fixed minor database reset issue