fixing issue with dynamic query function
fix for timestamps & idAttribute on update