fixed table. added firebase connection