How to do a database based entries

Hey guys, I have a question. My current project is on ionic angular using firebase, I am working on a personality test, and instead of making 40 seperate pages with the questions and answers, I want to do it through database, I want it to generate a new question every time there is a new entry in the database. Can someone help me achieve this? Thanks in advance!