update database middleware
update clean middleware
create index app file