Add support for storing key value in a db (port from redis).

- Port db code from redis including relevant logic to store
  key value pair. Including db.c file.

- Introducing checks to skip AddReply if client is Null. This happens in
  follower and candidates.