change the opening of database