pylib: fix minor bug in new Database class
commands: rocks properly works without a database now

this bug did not allow rocks command to work without a database connection
so it was failing the boostrap process