Serialization of Backet class was improved. Saving and loading db was implemented.