Function to return the list of databases