added users and messages model and controller