it will fetch keys from redis database and then store values into database