Adding a getDB function to ApiBase...