Added database upgrade query

Added a Query which allows the database upgrade von 1.9.11 to 1.9.12.
When upgrading, check your config file, too!