for active db