update DatabaseManagerV2 for more easy use

provided test cases to understand how to use it