fix module manager, some fixes to zend\db\ddl