reduce some of the database field sizes for compatibility with different versions of mysql
don't render a table with no data
Merge pull request #1 from spidaman/master

empty data tables are ugly :)