Fixing errors

Fixing small errors in database and delivery..
Adding ID number to order class
Implemented singleton pattern on database class
Updated generate methods