pylib: new command report databasesql

This command can be used to generate the sql necessary to create
the tables defined in a file inside rocks.db.mappings.*