invenio/master code fixes#3
invenio/master: kwalitee sql cleaning/fixing