Fixed cleandatabase command

Fixed cleandatabase command