move to frontend folder, and add mongo db