export snap 2json mysql query rewritten, added ability to save snap of any date