tidy html and allow local db path