Implement db reopen
Implement end pointer at the end of a file
Implement db scan iterator