discuss function is ready in db