Draw Chart
fix writing in db

Signed-off-by: Artsiom Marozau <Artsiom_Marozau@epam.com>
looks it working