Adding redis database support