Added DB cleanup util function