20130320-office combine

1. Add basicMysqliQuery to generalFunction, to do the basic mysql query
and return an array indexed by table id column value.
2. Update report.php with basicMysqliQuery replace the old long code.