Enabled database query and insertion from the map.  Also made a couple minor fixes to the database objects for logging and one major fix to it for setting the correct URI matching scheme up.