db refactor and adding scorekeeping to model

pull it!