added database commit