clean media + update db