practice with sinatra and active record