add db, begin front-end move to backbone