Fixed datepicker bug, added statistics

Now Date saving correctly (not 0000-00-00 as before), added plot for
statistic, text data will be in future. Menu and plot now in
development, UI too.