Some problems with the DBStream implementation, detected during the unit tests.

The position of the cursor and the dbstream created a problem. The version file does not considered old versions 0.120xx is higher than 0.3
Bug: When the buffer is reused it needs to be reset to avoid carring trash