removed old xmi_db subroutine