Successfully realized opening and closing databases by user's actions.