Custom Plot function is generated.  It needs check with database

Some to-do lists have been done in Mainwindow.cpp