Fix db creation and add listing of dbs