Look at the main.menu file in the ui folder in data-1.1.0.pk3, add a button called database or something, then in main.menu connect that button to a fuction called connect (or something suitable) then edit the source to have a function (with the name you chose earlier) that connects to a database. BTW why would Trem connect to a database?