Note to self - add a remove(path.c_str(0)) to clean up the db file.