Added a function, getDatabase.