Check DB existence before importing to fix #17