more db setup code