Moved c++ script to DB. Original author: @offl Fixes #10559
Please read this before adding new SQL-update files.