added mongo connections and writes to db, looking at adding numbered ids for posts