extend sinatra::base and datamapper::resource