added backup of snpsnap_query before logging modifications