Install ActiveRecord and connect to database.
Convert models to ActiveRecord