add Logger
use local file as database