It works now

Hopefully the final commit. Installer works now. No longer makes the
database read only.