added paramater binding methods to query and sp