added few log messages to debug the issue. The issue is that the main query is not working as it is not going into the done block of the getFirstInBackground method of the parse query. Still the issue has to be fixed.