Use ActiveRecord to connect to legacy db without Rails