initial work towards Labels being stored in the DB
Merge branch 'master' into sqlize
adds full model for storing Label data
 fix rate test script to use new versio of lib functions