Adding redis database support

Added the option to support redis as a storage engine.