changed from getconnection to getstatement