Safer inserts, recursive WITH queries