Database fix
Checking available is works! And many different changes.