added redis database support