Improved DB Exception handling in index.php and JAAMS\Core\Models\Base