An example to use activerecord framework