Update houses.php

Updated it to standard MC functions and mysql class