implemented a dbdump functionality