add database and observer