Fix db import

this should fix #423