Restructured DB storage and added stack rename functionality