Add db check to server setup