DB lab#1. Serialization + minor hash changes

This commit breaks the generating script.
Program output is directed to the stdout.
Data collecting functionality should be moved to the launcher script.