added middleware folder for database cleanup related files