Added db import function