error page creation, avoiding DB error