python script for convert log files to sqlite based on regexp named groups