Add basics for a restore script

 (Yes, sadly, still debugging, need the prod db)