new rewrite of fixeddb