Fixed bug in database-script for MySql. Reported by @0vermind