to do database commit