Example of using databases in rails