Update optionview_db_test2.py

add initBufferDB function
refactoring DB execute
change from buffer DB to file DB