Fixing bug with command.db