added database-updating