fixed bug in ORM logic table/feed relationship, added batch functionality to initdb