coding ORM and Contentprovider