edit-user adjusted to new database model