Catch SQL errors, properly colourise other PHP errors