update database including advertisement