Made changes to correct error in EventDao and UserDao