db updates and beginning of logging for new update