updated the api to dump arduino data on the database