message methods

in controller and db acess
h