Task for importing legacy database