add inject into db method