Fixing db constraints for user fields.