Fixing small bugs in commands and adding a few small attributes to db