reworked database, new logging columns, new logactivity