Switched to using PDO instead of mysqli. Removed extra_functions.php. Manually enable error messages.