Added $DB global as mock database

$DB global is an array holding all the product data to be used like a
temporary database. $DB is in /includes/functions.php