Add all SQL stored procedures to the db schema
Use the DB stored procedures, instead of raw SQL
Document what each stored procedure is doing
train-23
Merge pull request #84 from chilts/i81-move-sql-into-stored-procedures

Add all SQL stored procedures to the db schema