add new function in database