Removed unnecessary jpql queries
Added updateFrequency job parameter for the second job