added chart and updated db hooks