WIP: towards adapting the database folder to tf2

adapted part of the code for saving tf databases as tfrecords and loading them from tf records to tf2.

Merge request reports

Loading