Added "-c" clean database flag