added db connection and begun check function
added db check as test

remember to remove require and function call
Undid changes in app.js
changed db.js to use prototype and set up test route for check function
Merge branch 'master' of https://github.com/bengesoff/stroma

Accidentally made changes online, wrong place.
changed db variable name to data
called contructor instead of function
changed username variable in check function to name
changed response to user not console
added pin check and return only status to check function
Merge pull request #2 from bengesoff/master

Merge changes so branch is up to date