Close using database before opening a new database