[PATCH 2/3] use thread-safe DBI interface instead of deprecated one