Remove function of db