dbimport done; optimization needed