basic implementation of firebase backend