create tables about log