Fix database paths