Graphing+HeartData

graphing and heart data implemented to server also updated php and sql
commands to v5 compatible