SQL emulator