fixed layer creation from table CDB-1322