Added logging feature, removed others

Removed extraneous dbConnect method. Was pointless in the end.