new function add to db