change db commit back as it crashes