how to access db