Added database for log storage.