fixing two bugs--one in detecting install_clean, the other in assuming that meant a db file existed.