DbManager.getCustom().getSavedQueryCache().insert(savedQueryShare.toDb());
CommandResult cr = DbManager.getCustom().getSavedQueryCache().getDB().getLastError();
if (null == cr.get("err")) { // if we've actually done something, update the main share table also
savedQuery.getQueryInfo().setLastRun(now);
savedQueryShare.setShare(savedQuery.toApi());
// (this will overwrite the existing version)
DbManager.getSocial().getShare().save(savedQueryShare.toDb());
}//TESTED (by hand with prints)
}//TESTED (test3-5)