added database to keep track of user inputs