Resolve Issues: #1679

Fixed the problem with the admin user having id=0
after the upgrade to the release 1.2.

Additionally, a fix for the personal setting of the admin solved.
Since there were not favorites and managed categories and exception
raised and the personal admin page was not working