Add conditional to view the 404 page with an empty database