Added a function to get a list of databases