restored database scripts