Merge pull request #10 from LegaKh/tests

tests, device, seeds, some db changes :)