working version - checked upgrade and downgrade of DB