Fix bugs with avatar and lazy loading. Fixed dbschema