Add Query Functionaliy to CONNECTION