Adding history to sql interface to test introduced db functionality