more refactoring

Try to remove unnecessary indirections and initialisations with zero.
Also update links to the MySQL doc