Reset Database instance when close() is invoked