clean up some formatting and PEP8 of dal
temporarily add bounding rev ids query