gives names and pids to sql database
removed unneeded printlns