add schema

closes #16
Defined more db functions and implemented db.py to the routes.
Merge pull request #41 from swbae31/dbFunctions

Defined latest group and building db functions and implemented db.py to the routes.