Added hooks to notepad database (not fully functioning), cleaned up my_notebook php code.