Added activeflag in get content provider query