Add API for retrieving min and max values of attribute through BTree secondary database.