working on crud with blog example and fixing the collection factory