[UI][CORE][JS] big improvements in db management, now saving and loading are working as expected