fix dump_devdata command and dump db