Added database and firebase to main activity