Fix regression that broke database import functions