Added more messaging and a final cleanup process

Added more messaging and a final cleanup process to clean up the DB and
check for any duplicate data and delete it.