Added script to apply database updates

Based on https://github.com/magento/magento2/pull/14#commitcomment-1267648