method to retrieve database in use for team