Hopefully a performance optimizations ...

Retrieves first the id of a url and inserts the page only if missing, id
can also be used for relation/link
Some fixes -> result sets, referential constraints, sql logging