First version of check functional works correctly. Needs to be realized read/write from/to database.