extracted a public installDatabase api