Fixed DB autoinstall script