change sqlite data single insertion to bulk insertion