Now use ActiveRecord in database manipulation