Fix DB path to level above file
Add exit(1) if any promises fail during exit