db php graph