Made some small optimizations.
Redid the menu to be more modular and changed the look.
Updated the CreateMenuButtons hook. It now passes the actual menu and a function: addButton(id, text, onClickCallback)
Reverted tmysql4 to sqlite, sorry about that.