buf_size: store ranges in the database instead of single values