use active record.