Update of lims2db code.

Mainly this pull request is a update of the code that loads stuff from lims into the project database in statusdb.

There is also a new script for loading into the recently created reference database.

Also some changes are made to the logging function that I use.


Sorry for the huge pull request Mario.