use like instead of contains for string queries

The queries are still case sensitive
fixed "tagsUpdated" flag is now properly set
fixed decode file Uri before making string comparisions