added /api/clear/:id method to clear database testing entries