curl_tidy.h, database.h: documented functions