update DB addlayer functionality