utility to import data into database