might happen that query is None
fixed None key __setitem__ by generating the ID without adding to the DB
otherwise contained.setitem did a flush and loaded from the DB
fixing IdNamesPJContainer basic tests