private static Integer getDBVersion() {
		String sql = "SELECT version from db_props ORDER BY version DESC LIMIT 1";
		try {
			PreparedStatement ps = Connect.getConnection()
					.getPreparedStatement(sql);
			ResultSet rs = ps.executeQuery();
			while (rs.next())
				return rs.getInt(1);
		} catch (SQLException e) {
			e.printStackTrace();
			try {
				Connect.getConnection().cancelTrans();
				System.err.println("Cancelled failing version check");
			} catch (SQLException e2) {
				System.err.println("Something serious has gone down");
				e2.printStackTrace();
			}
		}

		return 1;
	}