Install dependencies according to db