* Fix crash when initialising database
