Fix SQL error on install