fix load db from file