hook up db