add show database 2d graph functionality