updated db schema.
cleaned up some code, started the records class in the REST api.