ruby/postgre app to manage a library of books