Fixed mapping of db fields.
Fixed profiles.