insert http logs in to db