Data structure fixes.
Automatic DB creation in Azure/Local system added.