Fix reading database.