coding style fixes, update to new db call model, and update to new gui event model