only change that this sql: 
"CREATE TABLE IF NOT EXISTS dbVersions ..." (line 13)
run in same transaction as (SELECT * FROM dbVersions) because otherwise
"UPDATE dbVersions set version = ? where name = ? ... " (line 62)
could run before table is created. (as happened with me)