discretized data from database table