add entry into db