Update types according to new database structure
Add support for user's homepage. Add tests. Improve user. Fixes