Added redis database support.