Works on factory, refactor mongodb and orm formatters