update database and theme