converting and importing database