[#41713173] remove the last traces of with_gpdb_connection
remove redundant code in connect_with between database, data source and schema