modularized code added a new contacts schema

Code was living in entirely in server.js fixed this by modularizing code, also added new contacts schema