fix rates db