Enabled database support

- Renamed cmd to command in Json object
- Added code to add commands to CouchDB database at 127.0.0.1
- Added code to run commands from database every minute or at manual
trigger