finished main activity dbtools and reporting