made statistics and profile graph access db