Added timestamp value in query