Interoperability of legacy databases