Added a random order generator, added the database entry functionality