Starting refactor of models. Took out dbconfig and it now exists in base index.js