export for dbmodel