Added entities table check. Added Error page (/error/index).