Fetching whole DB schema once

Instead of once pr table
Changing array style

Using the “new” square bracket style.