Fixed the clean database action