Change HNI functions with more than 5 args to ActRec and mark all mysql_* functions as static
Change mysql tests into PHP tests