start of database calls, one working part of graph1 call