handled db error with lost connection
added pages