added database storage feature