Fixed formatting for blog and added error catches for empty sql tables