Guarantee QSqlDatabase connection name uniqueness by using a static counter together with the current thread.