Database names in map definitions now require quotes, added a stat print out at the very end, and db_row_count() function with associated unittests.
Added some documenation to the main() function