added an entry to db