preliminary db setup