removed old db.js
linted
DRY
even better
better comments
lowered through dependancy for rpi
some refactor and comments