added fields to layers table