Fixing database provisioning