fix database pathname