added db field for last_value