Added database integration and started with graph