Modified DB.php : Added getMetadata() and get() helper functions.