Replace firebase api

Replace Firebase with Sinatra API