Add sqlite history