updating import script to use local database api