added query function to NativeSql + bug-fix in link search map