replaces sequel with activerecord