improved flash messages and database cleaner config