adding last edited date to query