log_this call has to come before db update or it only echos, doesn't write to db