changed how parameters are supplied in queries
possible to get an entity with its insertion date