sql query problem fixed

someone changed sql in getPkgById function of package_model. Some
packages data couldn't be retrieved because several joins are used and
there is no matched data in some of joined table, it returns null.
I added 'left' in the end of every join statement