Renamed unknown to input
Implemented ActiveRecord persistence