Move results schema to seperate model file out of server.js file
Move mongoose connections and functions to seperate file.
Fix type. Was calling query() instead of find().