secure db setup