import db correctly