made the base classes compatible with any namespace
complete crud functionality!