Added contacts_updated_min query function