Speed up for web.py

Added in a list_samples function to database.  

When requesting the browse page under web.py it now queries the database only once for samples instead of a query for each sample.  This speeds up the web script substantially when the database has thousands of samples.