fix db memory fields bug