Fixes on webmodel.php
Fixes on mysql