Added multiple databases opened and closed