Added bug logging button. Saves results to a db. Still needs stuff