Check Database exists before deleting in node. ISSUE-915

test can be run with grunt node-qunit --test=issue915

i didn't move the location of .uuid field since that sort of breaks old functionality,  all that really had ti be done was move the "rm" stuff into the "if" statement when checking for the existence of that .uuid file