re-ordered files and defined mongoose models for data