added database function