commands: use sqlalchemy engine in rocks command

rocks command line now uses sqlalchemy engine to manage connection
with database
commands: instantiate rank and rocks in database class
commands: handle sqlalchemy RowProxy properly when printing results