create profile controller with model and database