Bug when the pattern is null -> infinite loop
Print SQLite and MySQL in different files, no need to run