update to use mongo to save users posts