some misc stuff from mangosR2
Opcodes sql
mangosR2 sql stuff
big code merge with mangosR2