query using get with different key other than id