connect to local - added sql query for import