Worked on database implementation

Finished up some more work on the database implementation. The program
will now use a special sequence for the dialogue when it is the user’s
first time.