communicate to sinatra for accessing data