updated graph, buttons, added SQLForm.grid