Made database clearing command work