refactored php to OOP, fixed textproblem in sql script, added unittests for php