Use the database of the item instead of factory.getDatabase and remove the MediaExtractor call