Refixing delete not working, need to commit the db connection