finish adding database logging
new version