working with classes, migrate db