Clean up bugs, expand db_api to handle common cases
Merge pull request #62 from ContinuumIO/chdoig/dashboards_plus

fixups