a little db model/access code added