create db graph