moved prepareDb to qurl-load