Test version of class for working with database.