completely migrated to activerecord and mysql