Added time_expire to the query