added an export command, for database to JSON
add compact compact command, move all db commands into one group
add an import command, for exports and bulk modification