insert data from http log to db