General Update

Function adaptations on core.php
DB update
Update casas.php