Better-er output capture on database tests. Also caputure stderr. Integration test changes: resource_database_locator and resource_database_tables commandfile