complete db setup