added database call