Basic express and persistent DB calls
Moved interval logic to db lib

Also added TODO, renamed db.js var
Merge branch 'express'