access local db then send to firebase