new writer class instead of user, changing approach to handling mongo