draw life graph from db data