set app-version in setupDatabase() only if database is empty;
use namespace-app-version as base to calculate a namespace's version