Fix local server and add ActiveRecord support for Sinatra::Base