Added table name wrapping

And also did some phpdoc stuff
Added table name wrapping to db convenience methods