export db, work in progress