adding insertion to database tool