support selective reset of db, selective languages and pages.
minor internal fixes