Fix an error when setting up SQLite databases - Thanks Nikkolo94!
Reordered this, so we don't say we'll fix things that are already fixed