new method getDatabase
add test for new method
update readme