update tsgui

Made some changes, instead of implementing the GUI each DB, and engine are passed the current running obj this