Fixed sinatra ActiveRecord