fix read db