implemented ticker db update

after every algorithm iteration number will be inserted into db if it is
simple