Finally working contentprovider