Added script to apply database updates

Based on https://github.com/magento/magento2/pull/14#commitcomment-1267648
Merge pull request #232 from magento/fabian-apply-updates

Added script to apply database updates