How to use ActiveRecord without rails