direct to error page on mysql-error