fixed crash on restoring db from newer to older android version