creating commong FixedDBWriter and FixedDBReader