fixed controller to write from profile to db
merge
Merge branch 'front4'