test logging from database