Fixing compiling issues, rendering db storage of layout array almost useless. relying only on JSON storage