split olds and sqllog in two modules