db setup working