QUERY Case added for remaining files also.
Also, now handle(return) separate values for SELECT and UPDATE query.