added functionalities to store and delete layers metadata