method for passing ID, files for psql conn