change dir structure and add a mongodb backend post model