Remove sinatra and convert to firebase