added database pull