finish implementing db helper.