fix log2db script