First of all enable Lua errors. And step by step resolve them.
A good interface for Lua errors is
Bugsack/Buggrabber.
Take a look at line 9
Lua Code:
icon:Register("MyLDB", myLDB, savedVarTable)
Nothing in that line is declared before used. When removed your addon loads (if the used libs are provided) and the button shows up.