added database apply to installapp