add logging to db