changes in query in getAdvertisements method in UserDao