Frontend updates

Updated item class to not show more items than there are in the
database.

Also made the $amount parameter work in item.class.php.