fixed db update of ticks