a simple library system using ruby activerecord