add MagclDB and MagsrvDB class