Move db setup to db package