Standardize the application a little in order to use ActiveRecord as ORM.