Changed db_value_enum_value to set the enum value in a given int* to be able to return status.