set DB_DBT_READONLY on readable_data_type for bdb