added the getDatabase method